<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>ActiveSupport::TestCase</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../css/github.css" type="text/css" media="screen" />
<script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>     
    <div class="banner">
        
            <span>Ruby on Rails v4.0.0</span><br />
        
        <h1>
            <span class="type">Class</span> 
            ActiveSupport::TestCase 
            
                <span class="parent">&lt; 
                    
                    MiniTest::Unit::TestCase
                    
                </span>
            
        </h1>
        <ul class="files">
            
            <li><a href="../../files/activesupport/lib/active_support/test_case_rb.html">activesupport/lib/active_support/test_case.rb</a></li>
            
            <li><a href="../../files/railties/lib/rails/test_help_rb.html">railties/lib/rails/test_help.rb</a></li>
            
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
  


  


  
  


  


  
    <!-- Method ref -->
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
      
        <dt>A</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="TestCase.html#method-i-assert_nothing_raised">assert_nothing_raised</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>F</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="TestCase.html#method-c-for_tag">for_tag</a>
              </li>
            
          </ul>
        </dd>
      
    </dl>
  

  
    <!-- Includes -->
    <div class="sectiontitle">Included Modules</div>
    <ul>
      
        <li>
          
            <a href="Testing/SetupAndTeardown.html">
              ActiveSupport::Testing::SetupAndTeardown
            </a>
          
        </li>
      
        <li>
          
            <a href="Testing/Assertions.html">
              ActiveSupport::Testing::Assertions
            </a>
          
        </li>
      
        <li>
          
            <a href="../ActiveRecord/TestFixtures.html">
              ActiveRecord::TestFixtures
            </a>
          
        </li>
      
    </ul>
  



  

    

    

    
      <!-- Section constants -->
      <div class="sectiontitle">Constants</div>
      <table border='0' cellpadding='5'>
        
          <tr valign='top'>
            <td class="attr-name">Assertion</td>
            <td>=</td>
            <td class="attr-value">MiniTest::Assertion</td>
          </tr>
          
            <tr valign='top'>
              <td>&nbsp;</td>
              <td colspan="2" class="attr-desc"></td>
            </tr>
          
        
      </table>
    


    


    <!-- Methods -->
    
      <div class="sectiontitle">Class Public methods</div>
      
        <div class="method">
          <div class="title method-title" id="method-c-for_tag">
            
              <b>for_tag</b>(tag)
            
            <a href="TestCase.html#method-c-for_tag" name="method-c-for_tag" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-for_tag_source')" id="l_method-c-for_tag_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/a628dd5ac49987207f84c38c899900acb06abaaf/activesupport/lib/active_support/test_case.rb#L25" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-for_tag_source" class="dyn-source">
                <pre><span class="ruby-comment"># File activesupport/lib/active_support/test_case.rb, line 25</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">self</span>.<span class="ruby-identifier">for_tag</span>(<span class="ruby-identifier">tag</span>)
  <span class="ruby-keyword">yield</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">$tags</span>[<span class="ruby-identifier">tag</span>]
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
                  
      <div class="sectiontitle">Instance Public methods</div>
      
        <div class="method">
          <div class="title method-title" id="method-i-assert_nothing_raised">
            
              <b>assert_nothing_raised</b>(*args)
            
            <a href="TestCase.html#method-i-assert_nothing_raised" name="method-i-assert_nothing_raised" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              <p>Fails if the block raises an exception.</p>

<pre>assert_nothing_raised do
  ...
end</pre>
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-assert_nothing_raised_source')" id="l_method-i-assert_nothing_raised_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/a628dd5ac49987207f84c38c899900acb06abaaf/activesupport/lib/active_support/test_case.rb#L63" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-assert_nothing_raised_source" class="dyn-source">
                <pre><span class="ruby-comment"># File activesupport/lib/active_support/test_case.rb, line 63</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">assert_nothing_raised</span>(*<span class="ruby-identifier">args</span>)
  <span class="ruby-keyword">yield</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
                    </div>

    </div>
  </body>
</html>    